{% extends "base.html" %} 

{% block head %}
  <style type="text/css">
    @import url('/css/news.css');
  </style>
{% endblock head %}

{% block body %}    
  <div id="wrap">
  {% include 'header.html' %}  
    <!-- startcontent -->
    <div id="newstab-content">
      <div id="newstab-toc">
        <table id="newstab-toc-table" class="tabular" cellspacing="0" cellpadding="0">
          <thead>
            <tr>
              <th>Recent News:</th>
            </tr>
          </thead>
          <tbody>
            {% for entry in entries %}
            <tr id="newstab-toc-{{forloop.counter}}" class="{% cycle 'even' 'odd' %}">
              <td>
                <div class="title">
                  <a href="#newstab-entries-item-{{forloop.counter}}">{{entry.title}}</a>
                </div>
                <div class="subtitle">{{entry.feed_title}}, {{entry.updated_delta}}.</div>
              </td>
            </tr>
            {% endfor %}
          </tbody>
        </table>
      </div>
      <ul id="newstab-entries" class="entries-list">
        {% for entry in entries %}
        <li id="newstab-entries-item-{{forloop.counter}}" class="entry">
          <div class="title"><a target="_blank" href="{{entry.url}}">{{entry.title}}</a></div>
          <div class="subtitle">
            From <a target="_blank" href="{{entry.feed_url}}">{{entry.feed_title}}</a> {{entry.updated_delta}}.
          </div>
          <div class="summary">{{entry.content|safe}}</div>
        </li>
        {% endfor %}
      </ul>
    </div>
    <!-- endcontent -->
  </div>
{% endblock body %}
